<?php
/**
 * Created by PhpStorm.
 * User: Daxu
 * Date: 2018/3/24
 * Time: 21:45
 */
namespace App\Model;
use Zizaco\Entrust\EntrustRole;

class Role extends EntrustRole
{
    public function permissions(){
        return $this->belongsToMany(Permission::class, 'permission_role', 'role_id', 'permission_id');
    }
}
